package com.samphanie.dries.security.authentication.ldap;

import org.springframework.data.ldap.repository.LdapRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author Dries
 * @email 1451691457@qq.com
 */
@Repository
public interface LDAPUserRepo extends LdapRepository<LDAPUser> {

    Optional<LDAPUser> findByUsernameAndPassword(String username, String password);

}
